Saltar al contenido principal

Using Login Trust

This endpoint allows generating a URL for the resale page of an event using the LoginTrust authentication system.

Integration Example and Use Cases

This endpoint is useful when you need to redirect users to a ticket resale page for a specific event, securely authenticating the user through their LoginTrust method, such as email.

Request Example

curl --location --request GET 'https://api.mentatech.io/v1/marketplace/buyingflow/url/entrypoint?externalReferenceEventId=the-lion-king-broadway&showId=1124&loginTrust[withMethod]=email&loginTrust[user]=you_user_email@email.com' \
--header 'Authorization: "YOUR_API_KEY"
JSON Response
{
"status": 200,
"data": "https://event.mentatickets.com/es/6569313b5915f5ad7db970c6/1124?ticketSellerId=3&oneTimeToken=eyJlbWFpbCI6InlvdV91c2VyX2VtYWlsQGVtYWlsLmNvbSIsIm90dCI6IjY1NDA0MDI3MDU5IiwidXNlZCI6ZmFsc2UsInRpY2tldFNlbGxlcklkIjoiMyIsIl9pZCI6IjY1NmEyNDEzMTNlYzdkNDRjODE5NjcyZiJ9",
"errors": [
null
]
}
Attention

Remember to replace "YOUR_API_KEY" with your Private API key.

Request Parameters (Query Params)

  • externalReferenceEventId (required): The ID of the event for which you want to generate the resale URL. Example: the-lion-king-broadway.
  • showId (optional): The ID of the specific show within the event, if applicable. Example: 1124.
  • loginTrust[withMethod] (required): The method used to authenticate on your platform. Currently supported: email. Coming soon: phonenumber.
  • loginTrust[user] (required): The user identifier on your platform. Currently supported: email. Example: you_user_email@email.com.